<?
include ('../includes/conf.php');

$sql = $HTTP_GET_VARS["query"];

$result = @mysql_query($sql, $db);

while($row = mysql_fetch_array($result)){

	for($y = 0 ; $y < mysql_num_fields($result) ; $y++) {
		echo $row[mysql_field_name($result, $y)];
		if ($y < mysql_num_fields($result)-1) echo " - ";
	}

echo "\n";

}
?>

                    


